home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '90 / MacHack'90 Proceedings / John Norstad / Reusable Code / Source / rpp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-10  |  1.2 KB  |  49 lines  |  [TEXT/MPS ]

  1. /*______________________________________________________________________
  2.  
  3.     rpp.h - Report Printing Module Interface.
  4.     
  5.     Copyright © 1988, 1989, 1990 Northwestern University.  Permission is 
  6.     granted to use this code in your own projects, provided you give credit 
  7.     to both John Norstad and Northwestern University in your about box or 
  8.     document.
  9. _____________________________________________________________________*/
  10.  
  11. #ifndef __rpp__
  12. #define __rpp__
  13.  
  14. typedef void (*rpp_UpdateAll)(void);
  15.  
  16. typedef struct rpp_PrtBlock {
  17.     THPrint                hPrint;
  18.     short                    fontNum;
  19.     short                    fontSize;
  20.     short                    topMargin;
  21.     short                    botMargin;
  22.     short                    leftMargin;
  23.     short                    rightMargin;
  24.     Boolean                reverseOrder;
  25.     Boolean                header;
  26.     char                    *title;
  27.     short                    titleSep;
  28.     short                    titleFont;
  29.     short                    titleStyle;
  30.     short                    titleSize;
  31.     char                    *titleTmpl;
  32.     char                    *docName;
  33.     short                    dlogID;
  34.     short                    tabConID;
  35.     short                    emptyPageRangeID;
  36.     short                    ditlID;
  37.     short                    sizeRangeID;
  38.     short                    marginsTooBigID;
  39.     short                    minFontSize;
  40.     short                    maxFontSize;
  41.     Boolean                menuPick;
  42.     rpp_UpdateAll        updateAll;
  43. } rpp_PrtBlock;
  44.  
  45. extern OSErr rpp_Print (Handle repHandle, Boolean printOne, rpp_PrtBlock *p);
  46. extern Boolean rpp_StlDlog (rpp_PrtBlock *p);
  47.  
  48. #endif
  49.